'use strict'


Promise.all(_.map([
        'base'
    ], (name) => {
    return httpLoader('store/' + name)
})).then((m) => {
    return new Vuex.Store({
        modules: m
    })
}).then((store) => {

    const router = new VueRouter({
        routes: [
            {path: '/', component: httpVueLoader('pages/home')}
        ]
    })

    const App = httpVueLoader('app.vue')
    new Vue({
        el: '#app',
        router,
        store,
        template: '<App/>',
        components: {
            App
        }
    })

})